package com.learn.springbootcache.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * @author Jmy
 * @date 2019/10/18 15:00
 * @email jiaomingyu5778@gmail.com
 */
@Data
@Repository
public class ChinaCity implements Serializable {

    private static final long serialVersionUID = 1168647409792100627L;

    private Integer provinceId;

    /**
     * 如果属性为null，在序列号和反序列时，忽略该属性
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String provinceName;
    private Integer cityId;
    private String cityName;

}
